package com.mine.async.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mine.async.domain.pojo.DataTestBO;
import com.mine.async.domain.request.CreateJobRequest;
import com.mine.async.mapper.DataTestMapper;
import com.mine.async.service.IDataTestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class DataTestServiceImpl extends SuperServiceImpl<DataTestMapper, DataTestBO> implements IDataTestService {

    @Resource
    private DataTestMapper dataTestMapper;

    @Override
    public Page<DataTestBO> queryPage(CreateJobRequest request) {
        return dataTestMapper.queryPage(new Page(request.getPageNo(), request.getPageSize()), request);
    }
}
